import { IForm } from '@/base-ui/form'

export const searchFormConfig: IForm = {
  labelWidth: '120px',
  itemStyle: {
    padding: '10px 40px'
  },
  // colLayout: {
  //   span: 8
  // },
  formItems: [
    {
      field: 'name',
      type: 'input',
      label: '货物名',
      placeholder: '请输入货物名'
    },
    {
      field: 'shop_id',
      type: 'input',
      label: '商铺id',
      placeholder: '请输入电话号码'
    },
    {
      field: 'old_price',
      type: 'input',
      label: '原价',
      placeholder: '请输入原价'
    },
    {
      field: 'preferential_price',
      type: 'input',
      label: '现价',
      placeholder: '请输入现价'
    },
    {
      field: 'amount',
      type: 'input',
      label: '库存',
      placeholder: '请输入库存'
    },
    {
      field: 'createAt',
      type: 'datepicker',
      label: '创建时间',
      placeholder: '请选择创建时间范围',
      otherOptions: {
        startPlaceholder: '开始时间',
        endPlaceholder: '结束时间',
        type: 'daterange'
      }
    }
  ]
}
